#include <QCoreApplication>
#include <iostream>
#include <QDebug>
using namespace std;
int main() {
    int i,k,n;
    cout<<"vvedite K,N:\n";
    cin>>k;cin>>n;
     int *arr=new int[k];
     int **arr1=new int[n];
    for(i=0;i<k;i++){
        for(j=0;j<n;j++){
        arr[i]=i*j;
        cout<<"\t"<<arr[i][j];
        }
        cout<<"\n";
    }
    return 0;
}
